<?php

namespace app\api\v1\validate\order\pay;

use think\Validate;

class VipcartPayValidate extends Validate
{
    protected $rule = [
        'use_type'               => 'require|number|in:1,2',
        'use_mobile'             => 'require',
        'delivery_type'          => 'require|number|in:1,2',
        'delivery_address'       => 'require',
        'delivery_mobile'        => 'require',
        'customer_remark'        => 'max:500',
        'goods_id'               => 'require|number',
        'goods_specification_id' => 'number',
        'goods_name'             => 'require',
        'recharge_price'         => 'require|number',
        'discount_price'         => 'require|number',
        'pay_type'               => 'require|number|in:1,2,3,4',
    ];
}